require([
    'jquery',
    'module/handlebars',
    'global',
    'underscore',
    'holder',
    'jquery.debounce',
    'jquery.scrollto',
    'bootstrap',
    'requirejs/domready!'], 
function($, handlebars, g, _) {
	
	var resizeHandler = function(){
		$('.main-content').css('width', $('.container').width()-parseInt($('.main-content').css('margin-left')));
		$('.filter-bar').css('width', $('.main-content').width() + 3);
	};
	
	// window resize handler
	$(window).resize($.debounce( 250, resizeHandler));
	
	resizeHandler();
});